package com.gibs.peixunapi.service;

import com.gibs.peixunapi.VO.SubjectHubVO;
import com.gibs.peixunapi.model.SubjectHub;
import com.gibs.peixunapi.model.TestPaper;
import com.gibs.peixunapi.result.Result;

import javax.validation.Valid;
import java.util.List;
import java.util.Map;

public interface TestPaperService {

    Result create(@Valid TestPaper object);

    /**
     * 按题目类型分类,复制原有分值,新增试卷并返回id
     * @param subjectHubVOList 题目VO类列表
     * @return 试卷id
     */
    TestPaper copy(List<SubjectHubVO> subjectHubVOList,Integer testPaperId);

    Result save(@Valid TestPaper object);

    Result delete(Integer id);

    Result get(Integer id);

    Result getList(String key);

    Result getListPage(String key, Integer current, Integer limit);

    Result getOptions(String key);

    Result getVOList(TestPaper testPaper, Map<String, List<SubjectHubVO>> subjectHubVOMap);

}

